/*
 * @Description: 底部按钮提交类操作
 */
import globalData from '@/plugins/data';

export default ({ service, request, tools }) => ({
    /**
     * @description: 提交、暂存待办
     */
    summarySubmit(data) {
        return request({
            url: 'new/deal/' + globalData.affairId,
            method: 'post',
            data,
        });
    },
    /**
     * @description: 终止/回退/指定回退/撤销/移交
     */
    summarySubmitReturn(data) {
        return request({
            url: 'opt/deal/' + globalData.affairId,
            method: 'post',
            data,
        });
    },
    /**
     * @description: 存为草稿
     */
    summarySubmitDraft(data) {
        return request({
            url: 'new/comment/draft/' + globalData.affairId,
            method: 'post',
            data,
        });
    },
});
